package com.xinsilu.hospital.service.impl;

import com.xinsilu.hospital.entity.Drug;
import com.xinsilu.hospital.mapper.DrugMapper;
import com.xinsilu.hospital.service.IDrugService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ym
 * @since 2021-12-15
 */
@Service
public class DrugServiceImpl extends ServiceImpl<DrugMapper, Drug> implements IDrugService {

    @Autowired
    private DrugMapper drugMapper;

    @Override
    public boolean tianjiayp(Drug drug) {
        return drugMapper.tianjiayp(drug);
    }

    @Override
    public List<Drug> drugList(Drug drug) {
        return drugMapper.drugList(drug);
    }
}
